<script>
import IcsForm from "components/IcsForm.vue";
import mixin_edit_mini from "./js/mixin_edit_mini";
export default {
  mixins: [mixin_edit_mini],
  components: {IcsForm,},
  data() {
    return{
    }
  },
}
</script>

<template>
  <div class="bg-grey-1 q-pa-none">
    <div class="row items-center flex-center title bg-white q-pa-md">
      <div class="text-h5 col">编辑</div>
      <div>
        <q-btn label="取消" @click="cancel" />
        <q-btn class="q-ml-md" label="保存" color="primary" @click="save" />
      </div>
    </div>
    <q-separator class="q-mb-lg"></q-separator>
    <div class="q-pa-md">
      <IcsForm :model.sync="editModel" :form="formBuilder" :key="editFormUpdateKey"></IcsForm>
    </div>
  </div>
</template>

<style scoped>
.title{
  position: sticky;
  top:0;
  background-color: #FFF;
  z-index: 5;
}
</style>
